import request from '@/utils/request'

// 查询暖心对象列表
export function listCare_target(query) {
  return request({
    url: '/report/care_target/list',
    method: 'get',
    params: query
  })
}

// 查询暖心对象详细
export function getCare_target(id) {
  return request({
    url: '/report/care_target/' + id,
    method: 'get'
  })
}

// 新增暖心对象
export function addCare_target(data) {
  return request({
    url: '/report/care_target',
    method: 'post',
    data: data
  })
}

// 修改暖心对象
export function updateCare_target(data) {
  return request({
    url: '/report/care_target',
    method: 'put',
    data: data
  })
}

// 删除暖心对象
export function delCare_target(id) {
  return request({
    url: '/report/care_target/' + id,
    method: 'delete'
  })
}
